package com.reader.cms.service.sys;

import com.baomidou.mybatisplus.plugins.Page;
import com.reader.cms.entity.sys.SysUser;
import com.baomidou.mybatisplus.service.IService;

import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author jiahaikun
 * @date 2018-07-26
 */
public interface ISysUserService extends IService<SysUser> {
     SysUser getUserInfo(SysUser user);

    Page<Map<String,Object>> selectListPage(int currentPage, int size, String loginId, String name, String code);

    void configUserRoles(SysUser sysUser);

    boolean updateUser(SysUser sysUser);

    boolean deleteUser(SysUser sysUser);
    /**
     * 通过token 获取用户ID.业务中需要得到userid
     *
     * @param token
     * @return
     */
    public Integer getUserIdByToken(String token);
    public String getLoginIdByToken(String token);

}
